//
//  NSString+Extension.h
//  jingdongfang
//
//  Created by BOE on 2017/8/10.
//  Copyright © 2017年 ZhiYu Hao. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Extension)

///>32位MD5加密方式
+ (NSString *)md5_32Bit:(NSString *)srcString;

+ (NSString *)uuidString;

//数组转JSON
+ (NSString *)arrayToJSONString:(NSArray *)array;

///>去掉收尾空格、去掉换行后是否为空
- (BOOL)isEmpty;

- (BOOL)isTelephone;
- (BOOL)isPassword;

- (CGSize)getSizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size;


// 判断字符串是不是URL
- (BOOL)isValidUrl;
@end
